#include <iostream>
#include <string>
using namespace std;
 
void outSecure(int num)
{
    if(num >= 90){
        cout << "VERY_SECURE";
    }
    if(num >= 80 && num < 90){
        cout << "SECURE";
    }
    if(num >= 70 && num < 80){
        cout << "VERY_STRONG";
    }
    if(num >= 60 && num < 70){
        cout << "STRONG";
    }
    if(num >= 50 && num < 60){
        cout << "AVERAGE";
    }
    if(num >= 25 && num < 50){
        cout << "WEAK";
    }
    if(num >= 0 && num < 25){
        cout << "VERY_WEAK";
    }
}
int main()
{
    string pwd;
    cin >> pwd;
    int len = pwd.size();
    if(len < 1 || len > 300){ return 0; }
    int score = 0;
    //密码长度
    if(len <= 4){ score += 5; }
    else if(len >= 5 && len <= 7){
        score += 10;
    }
    else if(len >= 8){ score += 25; }
     
    // 字母数字
    int upletter = 0, lowletter = 0;  //大小写字母数量
    int num = 0, sign = 0;  // 数字 ， 字符数量
    for(int i = 0; i < len; ++i){
        if(pwd[i] >= '0' && pwd[i] <= '9'){
            ++num;
        }
        else if(pwd[i] >= 'a' && pwd[i] <= 'z'){
            ++lowletter;
        }
        else if(pwd[i] >= 'A' && pwd[i] <= 'Z'){
            ++upletter;
        }
        else if(pwd[i] >= 0x21 && pwd[i] <= 0x2f || \
                pwd[i] >= 0x3a && pwd[i] <= 0x40 || \
                pwd[i] >= 0x5b && pwd[i] <= 0x60 || \
                pwd[i] >= 0x7b && pwd[i] <= 0x7e ) {
            ++sign;
        }
        else{
            return 0;
        }
    }
    // 数字
    if(num == 1){ score += 10; }
    else if(num > 1){ score += 20; }
     
    if(lowletter > 0){
        if(upletter == 0){ score += 10; }  //全是小写字母
        else if(upletter > 0){
            score += 20;
        }
    }
    if(lowletter == 0 && upletter > 0){  //全是大写字母
        score += 10;
    }
     
    if(sign == 1){ score += 10; }
    else if(sign > 1){ score += 25; }
     
    if(num > 0 && (upletter > 0 || lowletter > 0)){
        score += 2;
        if(sign > 0){
            ++score;
            if(upletter > 0 && lowletter > 0){
                score += 2;
            }
        }
    }
    outSecure(score);
    return 0;
}